package com.zking.ssm.service;

import com.zking.ssm.model.SysRoler;
import com.zking.ssm.utils.PageBean;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
import java.util.Set;

@Transactional
public interface ISysRolerService {

    int deleteByPrimaryKey(Long roleId);

    int insert(SysRoler record);

    int insertSelective(SysRoler record);

    @Transactional(readOnly = true)
    SysRoler selectByPrimaryKey(Long roleId);

    int updateByPrimaryKeySelective(SysRoler record);

    int updateByPrimaryKey(SysRoler record);

    List<SysRoler> selectAll(SysRoler sysRoler, PageBean pageBean);

    //查询用户拥有的角色
    SysRoler selectRoleId(SysRoler sysRoler);

    //查询用户未拥有的角色
    List<SysRoler> noSelectRole(SysRoler sysRoler);
}